package com.ygnn.mapper;

import com.ygnn.common.Pojo.Users;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * ClassName:UserMapper
 * Package:com.ygnn.mapper
 * Description:
 *
 * @Author: dlh
 * @Creat:2024/10/28-19:26
 */
@Mapper
public interface UserMapper {
    @Insert("insert into users(openid,user_id) values " +
            "(#{openid},#{userId})")
    void save(Users user);
    @Select("select * from users where openid = #{openid}")
    Users selectByOpenId(String openid);

}
